using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace AdCompose
{
    public partial class FrmEdit : Form
    {
        public string strAdIndex = "";
        public string strTitle = "";
        public FrmEdit()
        {
            InitializeComponent();            
        }

        private void bt_ok_Click(object sender, EventArgs e)
        {
            strAdIndex = tb_adindex.Text.Trim();
            strTitle = tb_title.Text.Trim();
        }

        private void FrmEdit_Shown(object sender, EventArgs e)
        {
            tb_adindex.Text = strAdIndex;
            tb_title.Text = strTitle;
        }

        private void bt_cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}